Skip to content

chore: update comment about needs_interchanging #4895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

MarcoGorelli
Copy link
Contributor

This comment wasn't totally accurate, sorry

The flag indicates whether the object needs converting to PyArrow, but this doesn't necessarily happen via the interchange protocol. For DuckDB and Ibis, we just call their native "to arrow" methods, the interchange protocol is just the last fallback

In any case, I think that how exactly the conversion happens is an implementation detail, what Plotly sees is just that a conversion to PyArrow happens:

args["data_frame"] = nw.from_native(
    args["data_frame"].to_arrow(), eager_only=True
)

Copy link
Member

@LiamConnors LiamConnors left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MarcoGorelli !

@LiamConnors LiamConnors merged commit 817fef7 into plotly:master Nov 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants